#include "common.h"

wchar_t* toString(int x) {
    std::string str;
    str = std::to_string(x);
	size_t size = str.length();
	wchar_t *buffer = new wchar_t[size + 1];
	MultiByteToWideChar(CP_ACP, 0, str.c_str(), size, buffer, size * sizeof(wchar_t));
	buffer[size] = 0;
	return buffer;
}